package com.chen.project.white_jotter.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chen.project.white_jotter.pojo.AdminRole;

public interface AdminRoleMapper extends BaseMapper<AdminRole> {
    int deleteByPrimaryKey(Integer id);

    int insert(AdminRole record);

    int insertSelective(AdminRole record);

    AdminRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AdminRole record);

    int updateByPrimaryKey(AdminRole record);

    ///////////////////////////////////////////////////////////////////////////////////////////////


    // 通过用户id查询对应的角色
    String selectRoleNameByUserId(Integer uid);
}